<%@ page import="java.sql.*, database.*"%>
<%
String profID = (String) session.getAttribute("ProfID");
if(profID != null)
    {
String projID = request.getParameter("pId");

try
{
     new DBCon().deleteProject(projID);
     response.sendRedirect("../Proff/index.jsp");
}
catch(Exception e)
{
    response.sendRedirect("../connectionFailed.jsp?"+e);
}
}else
  response.sendRedirect("../index.jsp");  
%>
